/*
 * File:     boardwidget.h
 * Author:   Thomas Bruederli
 *
 * Interface of the QWidget class to display the status of the balance board.
 *
 * This file is part of the Qt-based cross-platform Wii device driver.
 *
 * Copyright (C) 2009-2010, Dominic Stalder & Thomas Bruederli
 * Licensed under the GNU Lesser General Public License (LGPL) as published
 * by the Free Software Foundation at http://www.gnu.org/licenses/lgpl-3.0.txt
 *
 * $Id: boardwidget.h 2 2010-02-15 12:48:56Z roundcube $
 */

#ifndef BOARDWIDGET_H
#define BOARDWIDGET_H

#include <QWidget>

class QLabel;
class QLineEdit;

/**
 * The QWidget displaying the Wii Balance Board status
 */
class BoardWidget : public QWidget
{
	Q_OBJECT
	
private:
	int centerx, centery;
	QLabel *bgimage, *masspoint, *statusLabel, *label1, *label2;
    QLineEdit *weightTopLeft;
    QLineEdit *weightTopRight;
    QLineEdit *weightBottomLeft;
    QLineEdit *weightBottomRight;
    QLineEdit *totalWeight;

public:
	BoardWidget(QWidget *parent = 0);

public slots:
	void setInstructions(int, const QString &msg, bool = false);
	void setValues(float tl, float tr, float bl, float br, float weight);
	void buttonChanged(int, int);
};

#endif
